<?php include 'header.php' ?>
<!--==============================content================================-->
<div class="content page1">
    <div class="container_12">
      <div class="grid_12">
             <h3><?php echo $title; ?></h3>
      </div>
      <?php
        $i = 0;
        $countList = count($menu);
        foreach ($menu as $id => $list) 
        {
          // 5 món 1 dòng
          if( $i == 4 )
          {
            echo '<div class="clear"></div>';
            $i = 0;
          }
          
          echo '<div style="height: 388px;" class="grid_3 maxheight"><div class="box_inner">
                         <h4>'.$list['food'].'</h4>
                         <div class="relative"> <img src="'.base_url('uploads/'.$list['picture']).'" alt="" class="img_inner"  width="200px" height="200px">                          
                         </div>'.substr($list['howtocook'], 0, 155).'...<br>
                         <a href="'.site_url('test/menu/'.$id).'" class="link1">Xem món ăn</a>&nbsp;
                         <a href="'.site_url('test/editFood/'.$id).'" class="link1">[Sửa món ăn này]</a>
                         </div>
                  </div>';          
          $i++;
        }
      ?>      
    </div>  
  <div class="hor_separator"></div>      
</div>
<?php include 'footer.php' ?>